package com.htfg.cardActivate.order.dao;

import com.htfg.cardActivate.order.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface OrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer id);

    List<Map<String,Object>> selectOrderList(@Param("uid")String uid, @Param("status")Integer status ,
                                             @Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);
    List<Map<String,Object>> bankPersonOrderList(@Param("uid")String uid, @Param("status")Integer status ,
                                             @Param("pageIndex")Integer pageIndex,@Param("pageSize")Integer pageSize);

    int selectOrderListCount(@Param("uid")String uid, @Param("status")Integer status);

    int bankPersonOrderListCount(@Param("uid")String uid, @Param("status")Integer status);
    int updateByPrimaryKeySelective(Order record);

    int selectUidOrderCountByStatus(@Param("uid") String uid, @Param("status")Integer status);

}